import request from '@/utils/request'

// 查询粗粒度ip明细列表
export function listCoarseip(query) {
  return request({
    url: '/ipmanagement/coarseip/list',
    method: 'get',
    params: query
  })
}

// 查询粗粒度ip明细详细
export function getCoarseip(id) {
  return request({
    url: '/ipmanagement/coarseip/' + id,
    method: 'get'
  })
}

// 新增粗粒度ip明细
export function addCoarseip(data) {
  return request({
    url: '/ipmanagement/coarseip',
    method: 'post',
    data: data
  })
}

// 修改粗粒度ip明细
export function updateCoarseip(data) {
  return request({
    url: '/ipmanagement/coarseip',
    method: 'put',
    data: data
  })
}

// 删除粗粒度ip明细
export function delCoarseip(id) {
  return request({
    url: '/ipmanagement/coarseip/' + id,
    method: 'delete'
  })
}
